function getCookie(name) {
    var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
    return (arr = document.cookie.match(reg)) ? unescape(arr[2]) : null;
}
if(getCookie("uid") === undefined || getCookie("uid") === null || getCookie("uid") === ""){
    location.replace("http://weida.fengdao168.com/index/index/index");
}